package com.ruoyi.wjq.mapper;

import java.util.List;
import com.ruoyi.wjq.domain.WrongQuestion;
import org.apache.ibatis.annotations.Mapper;

/**
 * 错题Mapper接口
 * 
 * @author wjq
 * @date 2025-08-13
 */
@Mapper
public interface WrongQuestionMapper 
{
    /**
     * 查询错题
     * 
     * @param id 错题主键
     * @return 错题
     */
    public WrongQuestion selectWrongQuestionById(Long id);

    /**
     * 查询错题列表
     * 
     * @param wrongQuestion 错题
     * @return 错题集合
     */
    public List<WrongQuestion> selectWrongQuestionList(WrongQuestion wrongQuestion);

    /**
     * 新增错题
     * 
     * @param wrongQuestion 错题
     * @return 结果
     */
    public int insertWrongQuestion(WrongQuestion wrongQuestion);

    /**
     * 修改错题
     * 
     * @param wrongQuestion 错题
     * @return 结果
     */
    public int updateWrongQuestion(WrongQuestion wrongQuestion);

    /**
     * 删除错题
     * 
     * @param id 错题主键
     * @return 结果
     */
    public int deleteWrongQuestionById(Long id);

    /**
     * 批量删除错题
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWrongQuestionByIds(Long[] ids);
}
